package com.lyh.stock.control;


import com.lyh.domain.bean.StockInfo;
import com.lyh.domain.server.StockInfoServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuyuhong
 */
@RestController
@RequestMapping("/stock")
public class StockControl {

    @Autowired
    private StockInfoServer stockInfoServer;

    @RequestMapping("/success")
    public StockInfo queryStockById(Long id){
        return stockInfoServer.queryStockById(id);
    }

}
